package com.gjl.system.domain;

import com.gjl.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gjl.common.annotation.Excel;

/**
 * 内容管理对象 fy_content
 * 
 * @author ruoyi
 * @date 2025-11-12
 */
public class FyContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 阅读次数 */
    @Excel(name = "阅读次数")
    private Long readCount;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 封面图片URL */
    @Excel(name = "封面图片URL")
    private String cover;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 附件信息，存储附件URL和名称的JSON数组 */
    @Excel(name = "附件信息，存储附件URL和名称的JSON数组")
    private String attachment;

    /** 宣传类型：图片、视频 */
    @Excel(name = "宣传类型：图片、视频")
    private Long promotionType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setAttachment(String attachment) 
    {
        this.attachment = attachment;
    }

    public String getAttachment() 
    {
        return attachment;
    }

    public void setPromotionType(Long promotionType) 
    {
        this.promotionType = promotionType;
    }

    public Long getPromotionType() 
    {
        return promotionType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("category", getCategory())
            .append("readCount", getReadCount())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("content", getContent())
            .append("attachment", getAttachment())
            .append("promotionType", getPromotionType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
